﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSA.Policlinic.UI.WFApplicationWCF.RegistryServiceReference
{
    public class Survey :BusinessObjectBase
    {
        private System.DateTime _surveyDate;
        private Injury _Injury;
        private Purpose _Purpose;
        private Result _Result;
        private SickList _SickList;
        private Ticket _Ticket;

        public Survey()
        {
            this._Injury = default(Injury);
            this._Purpose = default(Purpose);
            this._Result = default(Result);
            this._SickList = default(SickList);
            this._Ticket = default(Ticket);
        }

        public Survey(int id, bool isDeleted, DateTime surveyDate, Injury injury, Purpose purpose, Result result,
            SickList sickList, Ticket ticket):base(id, isDeleted)
        {
            _surveyDate = surveyDate;
            _Injury = injury;
            _Purpose = purpose;
            _Result = result;
            _SickList = sickList;
            _Ticket = ticket;
        }

        public Survey(DateTime surveyDate, Injury injury, Purpose purpose, Result result,
            SickList sickList, Ticket ticket)
        {
            _surveyDate = surveyDate;
            _Injury = injury;
            _Purpose = purpose;
            _Result = result;
            _SickList = sickList;
            _Ticket = ticket;
        }


        public System.DateTime SurveyDate
        {
            get
            {
                return this._surveyDate;
            }
            set
            {
                if ((this._surveyDate != value))
                {
                    this._surveyDate = value;
                }
            }
        }

        public Injury Injury
        {
            get
            {
                return this._Injury;
            }
            set
            {
                Injury previousValue = this._Injury;
                if (previousValue != value)
                {
                    this._Injury = value;
                    
                }
            }
        }

        public Purpose Purpose
        {
            get
            {
                return this._Purpose;
            }
            set
            {
                Purpose previousValue = this.Purpose;
                if (previousValue != value)
                {
                    this._Purpose = value;
                }
            }
        }

        public Result Result
        {
            get
            {
                return this._Result;
            }
            set
            {
                Result previousValue = this._Result;
                if (previousValue != value)
                {
                    this._Result = value;
                }
            }
        }

        public SickList SickList
        {
            get
            {
                return this._SickList;
            }
            set
            {
                SickList previousValue = this._SickList;
                if (previousValue != value)
                {
                    this._SickList = value;
                }
            }
        }

        public Ticket Ticket
        {
            get
            {
                return this._Ticket;
            }
            set
            {
                Ticket previousValue = this._Ticket;
                if (previousValue != value)
                {
                   
                    this._Ticket = value;
                }
            }
        }

       
    }
	
}
